home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / bookmark_previews-0.6.5-fx.xpi / chrome / content / placesOrganizer.xul < prev    next >
Extensible Markup Language  |  2008-05-27  |  6KB  |  126 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE overlay SYSTEM "chrome://bookmarkpreviews/locale/strings.dtd">
  3.  
  4. <!-- ***** BEGIN LICENSE BLOCK *****
  5.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  6.    -
  7.    - The contents of this file are subject to the Mozilla Public License Version
  8.    - 1.1 (the "License"); you may not use this file except in compliance with
  9.    - the License. You may obtain a copy of the License at
  10.    - http://www.mozilla.org/MPL/
  11.    -
  12.    - Software distributed under the License is distributed on an "AS IS" basis,
  13.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  14.    - for the specific language governing rights and limitations under the
  15.    - License.
  16.    -
  17.    - The Original Code is the Bookmarks Previews extension.
  18.    -
  19.    - The Initial Developer of the Original Code is
  20.    - John Marshall <JohnM555@gmail.com>.
  21.    - Portions created by the Initial Developer are Copyright (C) 2007
  22.    - the Initial Developer. All Rights Reserved.
  23.    -
  24.    - Contributor(s):
  25.    -   John Marshall <JohnM555@gmail.com>
  26.    - Alternatively, the contents of this file may be used under the terms of
  27.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  28.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  29.    - in which case the provisions of the GPL or the LGPL are applicable instead
  30.    - of those above. If you wish to allow use of your version of this file only
  31.    - under the terms of either the GPL or the LGPL, and not to allow others to
  32.    - use your version of this file under the terms of the MPL, indicate your
  33.    - decision by deleting the provisions above and replace them with the notice
  34.    - and other provisions required by the LGPL or the GPL. If you do not delete
  35.    - the provisions above, a recipient may use your version of this file under
  36.    - the terms of any one of the MPL, the GPL or the LGPL.
  37.    -
  38.    - ***** END LICENSE BLOCK ***** -->
  39.  
  40. <?xul-overlay href="chrome://bookmarkpreviews/content/albumview.xul"?>
  41. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
  42.  
  43. <?xml-stylesheet href="chrome://bookmarkpreviews/skin/library.css" type="text/css"?>
  44. <?xml-stylesheet href="chrome://bookmarkpreviews/skin/thumbview.css" type="text/css"?>
  45. <overlay id="bookmarkpreviewsOverlay" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  46.  
  47.   <script src="chrome://bookmarkpreviews/content/placesOrganizer.js"/>
  48.   <script src="chrome://bookmarkpreviews/content/previewServiceUtils.js"/>
  49.   <script src="chrome://bookmarkpreviews/content/placestreeview.js"/>
  50.   <window id="places">
  51.     <commandset id="previewsCommandSet" insertafter="organizerCommandSet">
  52.       <command id="BookmarkPreviews:ShowDetails"
  53.                oncommand="PlacesPreviewUtils.onSelectView('details',event)"/>
  54.       <command id="BookmarkPreviews:ShowAlbums"
  55.                oncommand="PlacesPreviewUtils.onSelectView('albums',event)"/>
  56.       <command id="BookmarkPreviews:ShowThumbnails"
  57.                oncommand="PlacesPreviewUtils.onSelectView('thumbnails',event)"/>
  58.     </commandset>
  59.   </window>
  60.   <menupopup id="organizeButtonPopup">
  61.     <menuseparator id="orgCreatePreviewsSeparator" insertafter="orgDelete"/>
  62.     <menuitem id="orgCreatePreviews" insertbefore="orgCloseSeparator"
  63.               label="&createpreviews.label;"
  64.               accesskey="&createpreviews.accesskey;"
  65.               oncommand="PlacesPreviewUtils.createPreviews();"/>
  66.   </menupopup>
  67.   <menupopup id="viewMenuPopup" view="details" persist="view">
  68.     <menuitem id="detailsViewMenu" label="&viewmenu.details.label;" insertbefore="viewColumns"
  69.               type="radio" name="view"
  70.               persist="checked"
  71.               command="BookmarkPreviews:ShowDetails"/>
  72.     <menuitem id="albumsViewMenu" label="&viewmenu.albums.label;" insertbefore="viewColumns"
  73.               type="radio" name="view"
  74.               persist="checked"
  75.               command="BookmarkPreviews:ShowAlbums"/>
  76.     <menuitem id="thumbnailsViewMenu" label="&viewmenu.thumbnails.label;" insertbefore="viewColumns"
  77.               type="radio" name="view"
  78.               persist="checked"
  79.               command="BookmarkPreviews:ShowThumbnails"
  80.               />
  81.     <menu id="thumbsSize" label="&thumbnailsize.label;" insertbefore="viewColumns" disabled="true">
  82.       <menupopup id="thumbsSizePopup">
  83.         <menuitem label="&thumbsSizePopup.small.label;" type="radio" name="thumbsize" oncommand="ThumbView.changeSize(0);"/>
  84.         <menuitem label="&thumbsSizePopup.medium.label;" type="radio" name="thumbsize" oncommand="ThumbView.changeSize(1);"/>
  85.         <menuitem label="&thumbsSizePopup.large.label;" type="radio" name="thumbsize" oncommand="ThumbView.changeSize(2);"/>
  86.       </menupopup>
  87.     </menu>
  88.   </menupopup>
  89.   <toolbar id="placesToolbar">
  90.     <hbox id="displayModes" insertbefore="searchFilter">
  91.       <toolbarbutton id="detailsMode"
  92.                      tooltiptext="&viewmenu.details.label;"
  93.                      command="BookmarkPreviews:ShowDetails"/>
  94.       <toolbarbutton id="albumMode"
  95.                      tooltiptext="&viewmenu.albums.label;"
  96.                      command="BookmarkPreviews:ShowAlbums"/>
  97.       <toolbarbutton id="thumbnailMode"
  98.                      tooltiptext="&viewmenu.thumbnails.label;"
  99.                      command="BookmarkPreviews:ShowThumbnails"/>
  100.     </hbox>
  101.   </toolbar>
  102.   <!--
  103.   <hbox id="placesView">
  104.     <splitter id="splitter" oncommand="PlacesPreviewUtils.onResize(event);"/>
  105.   </hbox>
  106.   -->
  107.   <vbox id="contentView">
  108.     <deck id="contentDeck">
  109.       <vbox id="defaultView">
  110.         <splitter id="albumview-splitter" insertafter="searchModifiers"
  111.                   collapse="before" resizeafter="closest" resizebefore="closest"
  112.                   oncommand="PlacesPreviewUtils.onResize(event);">
  113.           <grippy/>
  114.         </splitter>
  115.         <vbox id="albumview-container" insertafter="searchModifiers"
  116.               persist="height"
  117.               collapsed="true"
  118.               />
  119.       </vbox>
  120.       <thumbnailview id="thumbnailView" insertafter="defaultView" context="placesContext" type="places"/>
  121.     </deck>
  122.     <splitter id="contentSplitter" collapse="after"><grippy/></splitter>
  123.   </vbox>
  124.   <!-- -->
  125. </overlay>
  126.